<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">


  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

  <!-- 基础样式，包含  头部  搜索框  底部 -->
  <link rel="stylesheet" href="../css/base.css">

  <!-- 页面样式 -->
  <link rel="stylesheet" href="../css/inlanddiscount.css">


  <title>国内折扣</title>
</head>
<body>
  
  <!-- header 头部 -->
  <header>
    <h1>
      <a href="../index.html">
        <img src="../images/header_logo.png" alt="">
      </a>
    </h1>
  
    <a href="javascript:;">
      <img src="../images/header_app.png" alt="">
    </a>
  
  </header>

   <!-- search 搜索框 -->
  <section class="mmm_search">
    <form action="#">
      <input class="search_inp" type="search" placeholder="请输入你想比价的商品">
      <input class="search_submit" type="button" value="搜索">
    </form>
  </section>

  <!-- 折扣 -->
  <section class="mmm_discount clearfix">
    <!-- item -->
   
  </section>





  <!-- footer 底部 -->
  <footer>
    <div class="footer_nav">
      <a href="./login.html">登录</a>
      <a href="./register.html">注册</a>
      <a class="toTOP" href="javascript:;">返回顶部</a>
    </div>
    <div class="footer_app">
      <a href="javascript:;">手机app下载</a>
      <a href="javascript:;">慢慢买手机版</a>
      <span class="tips"> -- 掌上比价平台</span>
    </div>
    <div class="footer_com">m.manmanbuy.com</div>

  </footer>

</body>
</html>


<!-- zepto -->
<script src="../lib/zepto/dist/zepto.min.js"></script>
<!-- art-template模板 -->
<script src="../lib/art-template/template-web.js"></script>

<!-- base文件中包含响应式字体设置等方法 -->
<script src="../js/base.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>




<!-- 页面对应的js -->
<script src="../js/inlanddiscount.js"></script>



<script type="text/template" id="discountTmp">
  {{each result value key}}
  <a href="./discount.html?id={{value.productId}}" class="discount_item">
      <div class="item_pic">
        {{@ value.productImg}}
      </div>
      <div class="item_info">
        <p class="info_title">{{value.productName}}</p>
        <p class="info_price">{{value.productPrice}}</p>
        <div class="info_from">
          <span class="from">{{value.productFrom}}</span> | <span class="time">{{value.productTime}}</span>
        </div>
      
      </div>
    </a>
  {{/each}}
</script>